package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.vo.carportSellinfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TCarportsellMapper;
import com.ruoyi.system.domain.TCarportsell;
import com.ruoyi.system.service.ITCarportsellService;

/**
 * 车位销售Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-29
 */
@Service
public class TCarportsellServiceImpl implements ITCarportsellService 
{
    @Autowired
    private TCarportsellMapper tCarportsellMapper;

    @Override
    public List<carportSellinfo> getCarportSellInfo(carportSellinfo carportSellinfo) {
        return tCarportsellMapper.getCarportSellInfo(carportSellinfo);
    }

    /**
     * 查询车位销售
     * 
     * @param sellid 车位销售主键
     * @return 车位销售
     */
    @Override
    public TCarportsell selectTCarportsellBySellid(Long sellid)
    {
        return tCarportsellMapper.selectTCarportsellBySellid(sellid);
    }

    /**
     * 查询车位销售列表
     * 
     * @param tCarportsell 车位销售
     * @return 车位销售
     */
    @Override
    public List<TCarportsell> selectTCarportsellList(TCarportsell tCarportsell)
    {
        return tCarportsellMapper.selectTCarportsellList(tCarportsell);
    }

    /**
     * 新增车位销售
     * 
     * @param tCarportsell 车位销售
     * @return 结果
     */
    @Override
    public int insertTCarportsell(TCarportsell tCarportsell)
    {
        return tCarportsellMapper.insertTCarportsell(tCarportsell);
    }

    /**
     * 修改车位销售
     * 
     * @param tCarportsell 车位销售
     * @return 结果
     */
    @Override
    public int updateTCarportsell(TCarportsell tCarportsell)
    {
        return tCarportsellMapper.updateTCarportsell(tCarportsell);
    }

    /**
     * 批量删除车位销售
     * 
     * @param sellids 需要删除的车位销售主键
     * @return 结果
     */
    @Override
    public int deleteTCarportsellBySellids(Long[] sellids)
    {
        return tCarportsellMapper.deleteTCarportsellBySellids(sellids);
    }

    /**
     * 删除车位销售信息
     * 
     * @param sellid 车位销售主键
     * @return 结果
     */
    @Override
    public int deleteTCarportsellBySellid(Long sellid)
    {
        return tCarportsellMapper.deleteTCarportsellBySellid(sellid);
    }
}
